
############### name of target
#
TARGET		= ./example


#CPPFLAGS := $(CPPFLAGS) -D__LINUX__ -DEBUG
CPPFLAGS := $(CPPFLAGS) 

############### C++ compiler commands
#
CCC		= /usr/bin/g++
CC		= /usr/bin/gcc


############### objects needed to generate target
#
OBJS = 	atom.o	molCluster.o population.o  misc.o example.o			


CCFLAGS		=  $(CPPFLAGS)
COMPILE.cc	=  $(CCC) $(CCFLAGS) $(CPPFLAGS)  -c -w
LINK.cc		=  $(CCC) $(CCFLAGS) $(CPPFLAGS)  $(LDFLAGS)


############### options for compiler
#
#CCFLAGS:= -g -Wall -pedantic
CCFLAGS:= -g 

CXXFLAGS:=$(CXXFLAGS) $(CFLAGS)


############### options for linker
#

LDFLAGS		:=  $(LDFLAGS)

###############	make targets
#
all:		$(TARGET) $(INCLUDE)

.cpp:
		$(LINK.cc) -o $@ $< $(LDLIBS)
.cpp.o:
		$(COMPILE.cc) -o $@ $<
		
############### suffixes list
#
.SUFFIXES:	.o .so .a .c .cpp .h

.PHONY:		all clean depend

############### make shared object (dynamic link library)
#
$(TARGET):	$(OBJS)
		$(LINK.cc) -o $@ $(OBJS) $(LDLIBS)
		-$(RM) $(OBJS)

###############	clean up
#
clean:
		-$(RM) $(TARGET) $(OBJS)  *~


###############	update dependencies
#
#depend:
#		makedepend -Y -- $(CPPFLAGS) *.c *.cc *.cpp 2> /dev/null
#cleandepend:
#		makedepend

